import { defineCollection, defineContentConfig, z } from '@nuxt/content'
import { build } from 'nuxt'

export default defineContentConfig({
    collections: {
        blog: defineCollection({
            source: 'blog/*.md',
            type: 'page',
            // Define custom schema for docs collection
            schema: z.object({
                title: z.string(),
                description: z.string(),
                tags: z.array(z.string()),
                image: z.string().optional(),
                date: z.date(),
                alt: z.string().optional(),
            })
        })

    }
})

